import request from '@/utils/request'

// 查询电柜授权用户列表
export function listDgkzsq(query) {
  return request({
    url: '/kzgl/dgkzsq/list',
    method: 'get',
    params: query
  })
}

// 查询电柜授权用户详细
export function getDgkzsq(ID) {
  return request({
    url: '/kzgl/dgkzsq/' + ID,
    method: 'get'
  })
}

// 新增电柜授权用户
export function addDgkzsq(data) {
  return request({
    url: '/kzgl/dgkzsq',
    method: 'post',
    data: data
  })
}

// 修改电柜授权用户
export function updateDgkzsq(data) {
  return request({
    url: '/kzgl/dgkzsq',
    method: 'put',
    data: data
  })
}

// 删除电柜授权用户
export function delDgkzsq(ID) {
  return request({
    url: '/kzgl/dgkzsq/' + ID,
    method: 'delete'
  })
}
